<? class news extends add_module{
	function return_all_news(){	 $tmp=$this->model->return_all_news();
     foreach($tmp as $key=>$value){
     $text['text'].=$value['text'];
     }
     $data=$this->view->view("templates/site/tpl_module/news/news.tpl",$text,true);
     return  $data;
	}

	function _news_standby(){     $data=$this->return_all_news();
     return  $data;
	}

	function _news_schedule($side,$method="",$arg=""){     $data=$this->return_all_news();    return $data  ;

	}

      		function id($id){
   		 $side=$this->model->get_info($id,"side");
   		 $data[$side]=$this->return_menu($id,"",$side,"tree");

   		return	$data;

   		}

	function index($name="news"){	 $id=$this->model->get_info("id","ns_tree","name",$name);
   		 $side=$this->model->get_info("side","ns_tree","id",$id);
   		 $data['left']="eah";

   		return	$data;


	}

	function news_options(){
	 return "started";
	}

}
?>